package com.springboot.demo.design.pattern.listen;

/**
 * 基本上下文
 *
 * @author supu
 * @date 2019-07-04 11:09
 **/
public abstract class BaseContext<T> implements Context {
    /**
     * 上下文中数据
     */
    private T data;

    public BaseContext(T data) {
        this.data = data;
    }

    public T getData() {
        return data;
    }
}
